package com.aizhixin.lab.project.course.repository;

import com.aizhixin.lab.project.course.entity.TeacherModuleTaskFile;
import com.aizhixin.lab.project.course.entity.TeacherWorkOrderFile;
import com.aizhixin.lab.project.template.entity.WorkOrderFile;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TeacherWorkOrderFileRepository extends JpaRepository<TeacherWorkOrderFile,String> {
    List<TeacherWorkOrderFile> findByWorkOrderIdAndDeleteFlag(String workOrderId, Integer deleteFlag);
    List<TeacherWorkOrderFile> findByWorkOrderIdAndDeleteFlagAndIsHide(String workOrderId, Integer deleteFlag,Boolean isHide);
    Integer deleteByWorkOrderId(String workOrderId);
    Integer countByWorkOrderIdInAndDeleteFlag(List<String> workOrderIds, Integer deleteFlag);
    List<TeacherWorkOrderFile> findByWorkOrderIdInAndDeleteFlag(List<String> workOrderIds, Integer deleteFlag);
}
